<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="/_pagefind/modular.css">
    <title>Pagefind Local Dev Suite</title>
</head>
<body style="max-width: 1000px; padding: 80px; margin: 0 auto;">
    <h1>Hello World from the modular dev suite</h1>
    <p>Searches for words ending in <kbd>y</kbd> will return no results</p>
    <div id="searchbox"></div>
    <p>Unrelated Paragraph with an existing input: <input id="input" type="text"></p>
    <div id="pills"></div>
    <hr>
    <pre>
        <code>
            Summary: <span id="summary"></span>
        </code>
    </pre>
    <h2>Later on, we have some results:</h2>
    <div id="resultlist"></div>
    <script src="/_pagefind/modular.js" type="application/javascript"></script>
    <script>
        const pagefind = new PagefindModularUI.Instance();
        pagefind.add(new PagefindModularUI.Input({
            containerElement: "#searchbox"
        }));
        pagefind.add(new PagefindModularUI.Input({
            inputElement: "#input"
        }));
        pagefind.add(new PagefindModularUI.ResultList({
            containerElement: "#resultlist"
        }));
        pagefind.add(new PagefindModularUI.Summary({
            containerElement: "#summary"
        }));
        pagefind.add(new PagefindModularUI.FilterPills({
            containerElement: "#pills",
            filter: "color"
        }));
    </script>
</body>
</html>